<script>
export default {
  name: "404"
}
</script>

<template>
  <div class="not-found-container">
    <div class="error-animation">
      <div class="number">4</div>
      <div class="planet"></div>
      <div class="number">4</div>
    </div>
    <h1>页面不存在</h1>
    <p>您访问的页面已经迷失在宇宙中...</p>
    <el-button type="primary" @click="$router.go(-1)">返回上一页</el-button>
  </div>
</template>

<style scoped>
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  text-align: center;
  padding: 20px;
}

.error-animation {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.number {
  font-size: 120px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.planet {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #ff9d00, #ff2d00);
  border-radius: 50%;
  margin: 0 20px;
  position: relative;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 45, 0, 0.6);
}

.planet::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ccc;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}
</style>
